<?php

/**
 * TauxProcess.php
 */

namespace RHX\Model\Object;

use Zend\Db\Adapter\Adapter;

/**
 * Classe SiteDoc
 */
class SiteDoc{

    public $id;    
    public $site_id;
    public $libelle;
    public $path;
    
    protected $adapter;
    /**
     * Constructeur
     *
     * @param array $data
     */
    public function __construct(Adapter $adapter, $data = array()) {
        $this->adapter = $adapter;
	$this->exchangeArray($data);
    }

    /**
     * Remplissage des données
     *
     * @param array $data
     */
    public function exchangeArray($data) {
	$this->id	 = isset($data['id']) ? $data['id'] : 0;
        $this->site_id	 = isset($data['site_id']) ? $data['site_id'] : -1;
	$this->path	 = isset($data['path']) ? $data['path'] : '';	
        $this->libelle	 = isset($data['libelle']) ? $data['libelle'] : '';	
    }

    /**
     * Copie en Tableau des données
     * 
     * @return array
     */
    public function getArrayCopy() {
	return get_object_vars($this);
    }
}

?>
